import java.util.LinkedList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 123
 * Date: 2023-05-22
 * Time: 20:53
 */
public class test {
    public static void main(String[] args) {
      MyLinkedList myLinkedList = new MyLinkedList();
      myLinkedList.addFirst(1);
      myLinkedList.addFirst(2);
      myLinkedList.addFirst(3);
      myLinkedList.addLast(4);
      myLinkedList.display();
      myLinkedList.addIndex(0,99);
      myLinkedList.addIndex(4,88);
      myLinkedList.addIndex(3,66);
      myLinkedList.display();
        System.out.println(myLinkedList.size());

    }
}
